<?php echo $this->smarty_insert_scripts(array('files'=>'xwmoban_top10.js')); ?>
<div id="my_top10">
<?php if ($this->_var['top_goods']): ?>
<div class="red_style_1">
		<h3><span>销售排行</span></h3>
        <div class="body">
  			
            <div id="my-top10">
    <?php $_from = $this->_var['top_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');$this->_foreach['top_goods'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['top_goods']['total'] > 0):
    foreach ($_from AS $this->_var['goods']):
        $this->_foreach['top_goods']['iteration']++;
?>
    <?php if ($this->_foreach['top_goods']['iteration'] < 11): ?>
    <div class="top-item">
    	
        
        <p class="name">
        	<img class="iimg"
            	 onsrc="themes/default/images/new/<?php echo $this->_foreach['top_goods']['iteration']; ?>o.gif"; 
                 offsrc="themes/default/images/new/<?php echo $this->_foreach['top_goods']['iteration']; ?>.gif"
                 src="themes/default/images/new/<?php echo $this->_foreach['top_goods']['iteration']; ?>.gif">
        	<a href="<?php echo $this->_var['goods']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>"><?php echo $this->_var['goods']['short_name']; ?></a>
        </p>
        <p class="pic">
        	<a href="<?php echo $this->_var['goods']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>">
            	<img src="<?php echo $this->_var['goods']['thumb']; ?>" alt="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>" />
            </a>
        </p>
        <p class="price"><?php echo $this->_var['goods']['price']; ?></p>
        
        
    </div>
    <?php endif; ?>	
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
   </div> 
		</div> 
</div>
<?php endif; ?>
</div>

<div class="ad" style="padding-top:10px;">
<img src="themes/default/images/qqshop/icon20110831.png" alt="00">
<span class="ad" style="padding-top:10px;"><span class="ad" style="padding-top:10px;"><span class="ad" style="padding-top:10px;"><a href="category.php?id=16" target="_blank">
<span class="ad" style="padding-top:10px;"><img src="themes/default/images/qqshop/T17l5jXhFBXXXXXXXX-190-83.png" alt="00" width="210px"></span><img src="themes/default/images/qqshop/209_76_YUpiWU.gif"></a></span></span></span><a href="category.php?id=25"><img src="themes/default/images/qqshop/10.jpg" alt="00" width="210px"></a>
<span class="ad" style="padding-top:10px;"><img src="themes/default/images/qqshop/3.jpg" alt="00" width="210px"></span></div>

<script type="text/javascript">
	my_top10();
</script>